// @ts-check
import { put, fetch } from '../../../utils/requests.js'
import { carService } from '../../../utils/env'
/**
 * 事务添加车辆列表
 * @description 事务添加车辆列表
 * @returns {Promise<{ code: string, message: string, data: string }>} 返回值：
 */
const putCar = (data) => {
  const url = carService + '/data/transaction/addCar'
  return put(url, data, {}, true)
}

/**
 * 事务添加车辆列表
 * @description 事务添加车辆列表
 * @returns {Promise<{ code: string, message: string, data: string }>} 返回值：
 */
const feachCarNo = (data) => {
  const url = carService + '/data/car'
  return fetch(url, data, {}, true)
}

export {
  putCar,
  feachCarNo
}
